package com.xiaohu.myspace.database.entity;
// default package

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * MessageComment entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "MESSAGE_COMMENT", catalog = "myspace")
public class MessageComment extends BaseEntity  {

	private static final long serialVersionUID = 6340239558735611252L;
	// Fields

	private Integer id;
	private String commentContext;
	private Date commentDate;
	private Integer commentUserId;
	private Integer commentType;
	private Integer commentScort;

	// Constructors

	/** default constructor */
	public MessageComment() {
	}

	/** minimal constructor */
	public MessageComment(String commentContext, Date commentDate,
			Integer commentUserId, Integer commentScort) {
		this.commentContext = commentContext;
		this.commentDate = commentDate;
		this.commentUserId = commentUserId;
		this.commentScort = commentScort;
	}

	/** full constructor */
	public MessageComment(String commentContext, Date commentDate,
			Integer commentUserId, Integer commentType, Integer commentScort) {
		this.commentContext = commentContext;
		this.commentDate = commentDate;
		this.commentUserId = commentUserId;
		this.commentType = commentType;
		this.commentScort = commentScort;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "comment_context", nullable = false, length = 200)
	public String getCommentContext() {
		return this.commentContext;
	}

	public void setCommentContext(String commentContext) {
		this.commentContext = commentContext;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "comment_date", nullable = false, length = 0)
	public Date getCommentDate() {
		return this.commentDate;
	}

	public void setCommentDate(Date commentDate) {
		this.commentDate = commentDate;
	}

	@Column(name = "comment_user_id", nullable = false)
	public Integer getCommentUserId() {
		return this.commentUserId;
	}

	public void setCommentUserId(Integer commentUserId) {
		this.commentUserId = commentUserId;
	}

	@Column(name = "comment_type")
	public Integer getCommentType() {
		return this.commentType;
	}

	public void setCommentType(Integer commentType) {
		this.commentType = commentType;
	}

	@Column(name = "comment_scort", nullable = false)
	public Integer getCommentScort() {
		return this.commentScort;
	}

	public void setCommentScort(Integer commentScort) {
		this.commentScort = commentScort;
	}

}